package com.catsic;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity implements OnClickListener{
	
	Button  btn_01;
	Button  btn_02;
	Button  btn_03;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		setContentView(R.layout.entrance);
		
		btn_01 = (Button) this.findViewById(R.id.IdentifiyTask0Activity);
		btn_02 = (Button) this.findViewById(R.id.IdentifiyTaskActivity);
		btn_03 = (Button) this.findViewById(R.id.QueryTaskActivity);
		
		btn_01.setOnClickListener(this);
		btn_02.setOnClickListener(this);
		btn_03.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
			case R.id.IdentifiyTask0Activity:
				startActivity(new Intent(this, IdentifyTask0Activity.class));
				break;
			case R.id.IdentifiyTaskActivity:
				startActivity(new Intent(this,IdentifyTaskActivity.class));
				break;
			case R.id.QueryTaskActivity:
				startActivity(new Intent(this,QueryTaskActivity.class));
				break;

		}
		
	}

}
